Skip to content

Fix the nightly report summaries#1250

Closed
JanKrivanek wants to merge 2 commits into
github:mainfrom
JanKrivanek:dev/jankrivanek/validation-summary
Closed

Fix the nightly report summaries#1250
JanKrivanek wants to merge 2 commits into
github:mainfrom
JanKrivanek:dev/jankrivanek/validation-summary

Conversation

@JanKrivanek
Copy link
Copy Markdown
Contributor

Problem

The summary stats in nightly report were all zeroes

@JanKrivanek JanKrivanek requested a review from aaronpowell as a code owner April 1, 2026 08:51
Copilot AI review requested due to automatic review settings April 1, 2026 08:51
@JanKrivanek
Copy link
Copy Markdown
Contributor Author

Replaced by #1251

@JanKrivanek JanKrivanek closed this Apr 1, 2026
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Fixes the nightly “Skill Quality Report” summary table showing zero counts by updating how findings are counted from the skill-validator output.

Changes:

  • Update error/warning/advisory counting logic to match emoji markers in validator output.
  • Add an inline note describing the emoji markers used by skill-validator.

const advisoryCount = (combined.match(/\bAdvisory\b/gi) || []).length;
const errorCount = (combined.match(/❌/g) || []).length;
const warningCount = (combined.match(/⚠/g) || []).length;
const advisoryCount = (combined.match(/ℹ️/g) || []).length;
Copy link

Copilot AI Apr 1, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The new finding counters rely on exact emoji codepoints. In particular, advisories are counted with /ℹ️/g (U+2139 + VS16), but the comment says the marker is and some outputs render without the variation selector, which would keep advisoryCount at 0. Consider matching both forms (e.g., allow optional VS16) and/or falling back to the previous word-based matching so the summary stays correct across skill-validator output formats.

Suggested change
const advisoryCount = (combined.match(/ℹ️/g) || []).length;
// Match ℹ (U+2139) with optional VS16 (U+FE0F) so both ℹ and ℹ️ are counted
const advisoryCount = (combined.match(/\u2139\uFE0F?/g) || []).length;

Copilot uses AI. Check for mistakes.
@JanKrivanek JanKrivanek reopened this Apr 1, 2026
@JanKrivanek JanKrivanek closed this Apr 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants